Defines a rigid body with mass properties about its center of mass. The translational and rotational kinetic energies are represented by
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | cg(3) |
The x-y-z location of the CG relative to the body coordinate frame. |
|||
| real(kind=real64), | public | :: | inertia(3,3) |
The 3-by-3 inertia tensor as measured about the CG of the body. |
|||
| real(kind=real64), | public | :: | mass |
The mass of the body. |
Initializes a rigid_body object. The inertia tensor is interpreted about the supplied center of gravity, not about the world origin.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | optional | :: | m |
The mass of the body. If no mass is specified, a value of 1 is used. |
|
| real(kind=real64), | intent(in), | optional | :: | inertia(3,3) |
The 3-by-3 inertia tensor. If not supplied, an identity matrix is used. |
|
| real(kind=real64), | intent(in), | optional | :: | cg(3) |
The x-y-z location of the CG relative to the body coordinate frame. If not supplied, the CG is set to (0, 0, 0). |
The rigid_body object.